<?php
namespace app\api\controller;
use app\model\Uassistant as UassistantModel;
use app\model\Token as TokenModel;
use think\Db;


class Uassistant extends Base
{   
    /**
     * @Author   CCH
     * @DateTime 2020-05-23T12:10:10+0800
     * @return   数据列表
     */
    public function index(){
        $user_id = $this->login_user['user_id'];
        $map_params = [
            ['key'=>'assistant_id','type'=>'='],
        ];
        $map = getSearchParam($map_params);
        $map[] = ['user_id','=',$user_id];

        $model = new UassistantModel();
        $list = $model->where($map)->order('utime','desc')->select()->toarray();
        foreach ($list as $k => $vo) {
            
        }
        return apiResult('2000','获取成功',$list);
    }



}
